import request from '@/utils/request'

export default {
  // 分页查询学生宿舍列表
  getStudentDormitoryList(pageNo, pageSize, searchObj) {
    return request({
      url: `dormitory/getSDormitoryList/${pageNo}/${pageSize}`,
      method: 'post',
      data: searchObj
    })
  },
  // 新增学生宿舍
  addSDormitory(studentDormitory) {
    return request({
      url: 'dormitory/addSDormitory',
      method: 'post',
      data: studentDormitory
    })
  },
  // 根据id删除学生宿舍
  deleteSDormitory(dormitoryId) {
    return request({
      url: `dormitory/deleteSDormitory/${dormitoryId}`,
      method: 'delete'
    })
  }
}
